cat host
[hellowolrd]
hellowolrd01 id=23 user=root password=123.com port=22 hostname=hellowolrd01
hellowolrd02 id=24 user=root password=123.com port=22 hostname=hellowolrd02
cat Env.json
[{ "user": "root", "host": "hellowolrd01" }, { "user": "root", "host": "hellowolrd02" }]
cat check.sh 
#!/bin/bash
#java
func() {
    curl -s 127.0.0.1:80/actuator/health | grep -v DOWN | grep UP >/dev/null 2>&1
    if [ $? -eq 0 ]; then
        curl http://cgi-server/form.cgi?action=controller &
        status=true &
        host=127.0.0.1 &
        project=hcw-project
    fi

}
i=600
while true; do
    if [ $i -eq 0 ]; then
        break

    fi
    func
    i=$((i + 1))

done
make build
make[1]: Entering directory '/var/www/task/hcw-project'
echo "hello wolrd 2021-11-02-10-11:47"  > src/hello-world/index.html
cp -rf src/hello-world   package/2021-11-02-10-11:47
make[1]: Leaving directory '/var/www/task/hcw-project'
sleep 10
ansible-playbook -i host playbook.yml

PLAY ***************************************************************************

TASK [setup] *******************************************************************
fatal: [hellowolrd01]: UNREACHABLE! => {"changed": false, "msg": "ERROR! [Errno -2] Name or service not known", "unreachable": true}
fatal: [hellowolrd02]: UNREACHABLE! => {"changed": false, "msg": "ERROR! [Errno -2] Name or service not known", "unreachable": true}

PLAY RECAP *********************************************************************
hellowolrd01               : ok=0    changed=0    unreachable=1    failed=0   
hellowolrd02               : ok=0    changed=0    unreachable=1    failed=0   

makefile:9: recipe for target 'deploy' failed
